package com.ruoyi.business.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账变流水对象 t_account_log
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
public class TAccountLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 账户id */
    @Excel(name = "账户id")
    private Long accountId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    /** 操作金额。单位分。正数-收入，负数-支出 */
    @Excel(name = "操作金额。单位分。正数-收入，负数-支出")
    private Long opAmount;

    /** 旧金额 */
    @Excel(name = "旧金额")
    private Long oldAmount;

    /** 新金额 */
    @Excel(name = "新金额")
    private Long newAmount;

    /** 关联的业务id。无业务相关的填0。例如订单手续费填写对应订单id */
    @Excel(name = "关联的业务id。无业务相关的填0。例如订单手续费填写对应订单id")
    private Long bizId;

    /** 操作类型。100平台代充，101用户充值，102代理代充，200订单手续费，201提现手续费，300-订单收入 */
    @Excel(name = "操作类型。100平台代充，101用户充值，102代理代充，200订单手续费，201提现手续费，300-订单收入")
    private Long opType;

    /** 账户操作描述 */
    @Excel(name = "账户操作描述")
    private String opDesc;

    /** 用户可见。默认1是 */
    @Excel(name = "用户可见。默认1是")
    private Integer userVisible;

    /**  */
    @Excel(name = "")
    private Long createUser;

    /**  */
    @Excel(name = "")
    private Long updateUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOpAmount(Long opAmount) 
    {
        this.opAmount = opAmount;
    }

    public Long getOpAmount() 
    {
        return opAmount;
    }
    public void setOldAmount(Long oldAmount) 
    {
        this.oldAmount = oldAmount;
    }

    public Long getOldAmount() 
    {
        return oldAmount;
    }
    public void setNewAmount(Long newAmount) 
    {
        this.newAmount = newAmount;
    }

    public Long getNewAmount() 
    {
        return newAmount;
    }

    public void setOpType(Long opType) 
    {
        this.opType = opType;
    }

    public Long getOpType() 
    {
        return opType;
    }
    public void setOpDesc(String opDesc) 
    {
        this.opDesc = opDesc;
    }

    public String getOpDesc() 
    {
        return opDesc;
    }
    public void setUserVisible(Integer userVisible) 
    {
        this.userVisible = userVisible;
    }

    public Integer getUserVisible() 
    {
        return userVisible;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("accountId", getAccountId())
            .append("userId", getUserId())
            .append("opAmount", getOpAmount())
            .append("oldAmount", getOldAmount())
            .append("newAmount", getNewAmount())
            .append("bizId", getBizId())
            .append("opType", getOpType())
            .append("opDesc", getOpDesc())
            .append("userVisible", getUserVisible())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
